<?php get_header(); ?>

<!--主屏-->
<div class="page-w mb20">
  <div class="main-banner swiper-container">
    <div class="swiper-wrapper">
         <?php $cat=get_category_by_slug('home');?>
         <?php $posts = get_posts( "category__in=".$cat->term_id."&numberposts=7&orderby=post_title&order=ASC" ); ?>
         <?php if( $posts ) : ?>
         <?php foreach( $posts as $post ) : setup_postdata( $post ); ?>
             <div class="swiper-slide"><a><img src="<?php echo get_first_image($post); ?>" alt="" /></a></div>
         <?php endforeach; ?>
         <?php endif; ?>
    </div>
    <div class="swiper-button-next"></div>
    <div class="swiper-button-prev"></div>
  </div>
  <div class="page-w banner-nav">
    <ul class="main-con">
      <li><a href="./index.php/estate"><img src="<?php echo get_template_directory_uri(); ?>/images/nav-estate.jpg" alt="地产"/></a></li>
      <li><a href="./index.php/commercial"><img src="<?php echo get_template_directory_uri(); ?>/images/nav-commercial.jpg" alt="商业综合体"/></a></li>
      <li><a href="./index.php/decorate"><img src="<?php echo get_template_directory_uri(); ?>/images/nav-household.jpg" alt="泛家居"/></a></li>
      <li><a href="./index.php/hotel"><img src="<?php echo get_template_directory_uri(); ?>/images/nav-hotel.jpg" alt="酒店"/></a></li>
    </ul>
  </div>
</div>
<!--业务传送门-->
<div class="main-con index-con text_c"><strong>业务传送门</strong>
  <div class="quick-nav clearfix"><a href="./index.php/room"><i class="icon-df"></i>订房</a><a href="./index.php/dinner"><i class="icon-dc"></i>订餐</a><a href="./index.php/bidding"><i class="icon-ztb"></i>招投标</a><a href="./index.php/investment"><i class="icon-zs"></i>招商</a><a href="./index.php/house"><i class="icon-gw"></i>购房</a><a href="./index.php/recruit"><i class="icon-zp"></i>人才招聘</a> </div>
</div>

<!--关于我们-->
<div class="page-w index-con" style="background: #f3f4f6">
  <div class="main-con index-con text_c"><strong>关于我们</strong>
    <div class="index-about swiper-container">
      <div class="swiper-wrapper">
         <?php $cat=get_category_by_slug('history');?>
         <?php $posts = get_posts( "category=".$cat->term_id."&numberposts=5&orderby=post_title&order=ASC" ); ?>
         <?php if( $posts ) : ?>
         <?php foreach( $posts as $post ) : setup_postdata( $post ); ?>
         <div class="swiper-slide"><strong><?php echo $post->post_content; ?></strong><i><?php the_title(); ?></i></div>
         <?php endforeach; ?>
         <?php endif; ?>
      </div>
      <div class="swiper-pagination"></div>
    </div>
  </div>
</div>
<!--联系我们-->
<div class="main-con index-con text_c"><strong>联系我们</strong>
  <div class="index-contact clearfix">
    <ul>
      <li><i><img src="<?php echo get_template_directory_uri(); ?>/images/part1.png" alt="联系方式"/></i><strong>联系方式</strong>
        <p>电话号码：025-58697777</p>
        <p>邮箱：345514809@qq.com</p>
      </li>
      <li><i><img src="<?php echo get_template_directory_uri(); ?>/images/part2.png" alt="金太阳微博"/></i><strong>金太阳微博</strong><img src="<?php echo get_template_directory_uri(); ?>/images/ewm.png" alt="金太阳微博" /></li>
      <li><i><img src="<?php echo get_template_directory_uri(); ?>/images/part3.png" alt="金太阳微信"/></i><strong>金太阳微信</strong><img src="<?php echo get_template_directory_uri(); ?>/images/wx.png" alt="金太阳微信" /></li>
    </ul>
  </div>
</div>

<?php get_footer(); ?>

<script>
	var swiper = new Swiper('.main-banner', {
		autoplay:true,
		loop: true,
		navigation: {
			nextEl: '.swiper-button-next',
			prevEl: '.swiper-button-prev',
		}
	});
	var swiper = new Swiper('.index-about', {
		autoplay:true,
		pagination: {
			el: '.swiper-pagination',
			clickable: true,
		},
	});
</script>
</body>
</html>